/// @file Spring.cpp
/// @brief the spring connection between 2 particles

#include "Spring.h"

Spring::Spring
        (
            Particle* _rootNode,
            Particle* _endNode,
            const float _restLength,
            const SpringType _springType
        )
{
    m_rootNode = _rootNode;
    m_endNode = _endNode;
    m_restLength = _restLength;
    m_springType = _springType;
}

Spring::Spring()
{
    m_restLength = -1;
}
